-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsub backoff spec changes #2403
Conversation
//CC @Menduist |
@AgeManning do you have some time to give this pull request a review? |
protocols/gossipsub/src/behaviour.rs
Outdated
@@ -1092,10 +1093,15 @@ where | |||
self.backoffs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we be updating our local store also, as well as telling the peer what the backoff time should be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test that should check if the used and sent backoff are the unsubscribe backoff
09f6a16
to
497e056
Compare
@mxinden could you give CI a check? Not sure if related to the latest rust release, but it works on my machine. I tried clearing the cache too, still works |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Implements the changes specified by libp2p/specs#383 (to my best understanding)